<extend name="Public/base"/>
<block name="body">
<div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
            <h5>{$meta_title}</h5>
             <div class="buttons">            
              <div class="btn-group">
                  <a  data-toggle="dropdown" class="btn" style="font-size:12px;">新增栏目&nbsp;<span class="caret"></span></a>
                  <ul class="dropdown-menu" style="min-width:105px;">
                      <volist name="modelList" id="model">
                         <li><a href="{:U('Add',array('modelId'=>$model['model_id'],'isChannel'=>$model['has_content']))}">{$model.model_name}</a></li>
                      </volist>
                  </ul>
               </div>        
             </div>
           </div>
          <div class="widget-content ">
            <table class="table table-bordered table-striped with-check">
                  <thead>
                    <tr>
                      <td>ID</td>
                      <td>模型名称</td>
                      <td>栏目模板前缀</td>
                      <td>内容模板前缀</td>
                      <td>排序</td>
                      <td>状态</td>
                      <td>操作</td>
                    </tr>
                  </thead>
              <tbody>
                 <volist name="list" id="vo">
                    <tr>
                      <td>{$vo.model_id}</td>
                      <td>{$vo.model_name}</td>
                      <td>{$vo.tpl_channel}</td>
                      <td>{$vo.tpl_content}</td>
                      <td>{$vo.sort}</td>
                      <td><if condition="$vo['status'] eq 1">开启<else/>关闭</if></td>
                      <td>
                      <a href="{:U('Edit',array('id'=>$vo['model_id']))}">编辑</a> | 
                      <a href="{:U('listField',array('modelId'=>$vo['model_id'],'isChannel'=>0))}">栏目模型</a>  | 
                      <if condition="$vo['has_content'] eq 1"><a href="{:U('listField',array('modelId'=>$vo['model_id'],'isChannel'=>1))}">内容模型</a>  |</if>
                      <a href="{:U('Del',array('id'=>$vo['model_id']))}">删除</a></td>
                    </tr>
                 </volist>
              </tbody>
            </table>
          </div>
        </div>
</block>